home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / MISC / COMPAND.ZIP / README < prev    next >
Encoding:
Text File  |  1994-08-02  |  5.5 KB  |  135 lines

  1. ;-----------------------------------------------------------------------;
  2. ; README                                                                ;
  3. ; (C) 1993                                                              ;
  4. ; Walla Walla College                                                   ;
  5. ; By: Fred Christensen                                                  ;
  6. ;                                                                       ;
  7. ; Operating Instructions for the DSP Voice Frequency Companding System  ;
  8. ;-----------------------------------------------------------------------;
  9.  
  10. INTRODUCTION
  11. ------------
  12.  
  13. These are instructions for the use of the DSP Voice Frequency 
  14. Companding System using TI's DSP Starter Kits (DSK).  Note that 
  15. this setup is just a demonstration of what could be possible    
  16. possible with this compandoring technique.  With closer observation
  17. you will note that you must recompile or reload new code in order
  18. to switch between TRANSMIT and RECEIVE modes.  It is possible to 
  19. have this done automatically, but then an input of some kind from
  20. the PTT on the transceiver would need to be made to the DSK.  This
  21. would most likely require some hardware modification which we have
  22. not done yet.  
  23.  
  24. The following hardware will be needed:
  25.     IBM compatible computer with serial port
  26.     TI's TMS320 DSP Starter Kit (with TMS320C26 DSP)
  27.     Microphone (can use mike on radio)
  28.     Audio Amplifier (maybe depending on mic output)
  29.     Radio Transceiver
  30.  
  31. The following software files will be needed:
  32.     COMPAND.ASM (Main program code for DSP)
  33.     COEF.ASM (FIR Filter coefficients)
  34.     EXP.ASM (cosine & sine lookup tables)
  35.     DSKA.EXE (Assembler - comes with DSK Kit)
  36.     DSKD.EXE (Debugger Interface - comes with DSK Kit)
  37.  
  38. These are available via anonymous FTP from ftp.wwc.edu:/pub/compandor or via
  39. gopher from gopher.wwc.edu under Available Code.
  40.  
  41. PLEASE NOTE:  These files are in UNIX format (no CR).  Also included is a file
  42. called compand.zip which is a pkzip(v2.0) format archive of the same files in
  43. DOS format.  If for some reason you need the DOS format files seperately please
  44. drop a note to ftp@wwc.edu.
  45.  
  46. HARDWARE
  47. --------
  48.  
  49. The DSK board should be setup with power and a serial connection to the 
  50. computer as per the DSP Starter Kit instructions.  
  51.  
  52.  
  53. Transmit Mode:
  54.  
  55. Plug the microphone into an audio amplifier.  Run the output of the 
  56. amplifier to the RCA input jack on the DSK board.  The amplifier is
  57. usually needed so that 0-3 volt audio levels are obtained.  Run a cord then 
  58. from the RCA output on the DSK board to the audio/mic input on the
  59. transceiver.  You may need to also connect up the PTT from the mic
  60. to the transceiver, unless you wish to do this manually.  
  61.  
  62. Receive Mode:
  63.  
  64. Run a cord from the audio output of the transceiver to the RCA input
  65. jack on the DSK board (check the output levels of the transceiver to
  66. make sure they are in the 0-3 volt range... you may need an amplifier 
  67. if they are not).  Now run a cord from the RCA output on the DSK board
  68. to a speaker (an amplifier is usually needed between the DSK board and 
  69. the speaker unless your speaker system has one built in).  
  70.  
  71.  
  72. SOFTWARE
  73. --------
  74.  
  75. The compand program was written to run within the DSKD debugger interface.
  76. To change between the receive and transmit modes simply modify the 
  77. TR_DEFAULT constant within COMPAND.ASM to be either RECEIVE or TRANSMIT.
  78. Next assemble COMPAND.ASM using DSKA.EXE (i.e. type: DSKA COMPAND.ASM).
  79. Now run DSKD.EXE (i.e. type: DSKD -M2).  When inside the debugger program
  80. type LD and then enter the file name COMPAND.DSK and press enter.  Once
  81. the file has been loaded into the DSP, simply press F5 to execute it.
  82.  
  83. Note:  When compiling COMPAND.ASM, make sure that the two files
  84.        EXP.ASM and COEF.ASM are in the same directory.  
  85.  
  86. OPERATION
  87. ---------
  88.  
  89. Transmit Operation:
  90.  
  91. Hook up the hardware as described in the hardware transmit section and
  92. then run the software within the debugger (make sure the TR_DEFAULT is 
  93. set to TRANSMIT within COMPAND.ASM).  Now talk into the microphone.
  94. If you have the output of the DSK board hooked up to a speaker you should
  95. here what you say except that it should sound a bit distorted and have
  96. a base sound (lower frequencies) to it.  If you have it hooked up to
  97. a transceiver then just start transmitting.
  98.  
  99. Receive Operation:
  100.  
  101. Hook up the hardware as described in the hardware receive section and
  102. then run the software within the debugger (make sure the TR_DEFAULT is
  103. set to RECEIVE within COMPAND.ASM).  Now have someone transmit a 
  104. companded signal to your receiver.  The person transmitting should
  105. be using the same code and DSK setup except in the TRANSMIT mode. 
  106. Listen to the audio on a speaker.  The audio should now sound normal
  107. again except for slight distortions.  As with the Transmit mode, you could 
  108. simply run a microphone to the input of the DSK board through an amplifier
  109. and listen to the output of the DSK board on a speaker.  In this case
  110. the audio should sound higher than normal (more high frequencies than
  111. normal due to shifting up).  
  112.  
  113.  
  114. CONCLUSION
  115. ----------
  116.  
  117. Have fun and we hope this works for you.  The file TABLES.M is a matlab
  118. file that we used to generate the filter coefficients and sine/cosine
  119. lookup tables.  This may help you if you want to play with the filter
  120. coefficients.  If you have questions we can be reached at the following
  121. email addresses: 
  122.  
  123. John Ash, IV (KB7ONG)
  124. email: jash@eecs.wsu.edu
  125.  
  126. Fred Christensen (KA6PNW)
  127. email: chrifr@wwc.edu
  128.  
  129. Rob Frohne (KL7NA)
  130. email: frohro@wwc.edu
  131.  
  132.  
  133.  
  134.  
  135.